package com.isunland.managesystem.entity;

import java.io.Serializable;

/**
 * 部门详情
 *
 * @author wu
 */
public class CustomerRelationDepartmentDetail implements Serializable {
  public static final String NEW = "new";
  public static final String PUBLISH = "publish";
  public static final String SUBMIT = "submit";
  public static final String NEW_BACK = "newback";
  private String id;//主键
  private String orgCode;//部门Code
  private String orgName; //部门名称
  private String pid;//上级部门id
  private String dutyDescript; //部门职责说明
  private String customerName; //客户名称
  private String customerId; //客户ID
  private String managerId; //部门经理ID
  private String managerName;//部门经理姓名
  private String directorId;// 部门主管领导Id
  private String directorName;// 部门主管领导姓名
  private String regDate; // 创建时间
  private String dataStatus;//数据状态
  private String porgName;// 上级部门名称

  /**
   * 获取直属部门，去掉连字符
   */
  public static String getDirectDepartment(String departmentName) {
    int index = departmentName.lastIndexOf(">");
    if (index > 0) {
      departmentName =
          departmentName.substring(departmentName.lastIndexOf(">") + 1, departmentName.length());
    }

    return departmentName;
  }

  /**
   * @return id
   */
  public String getId() {
    return id;
  }

  /**
   *
   * @param id
   */
  public void setId(String id) {
    this.id = id;
  }

  /**
   * @return orgCode
   */
  public String getOrgCode() {
    return orgCode;
  }

  /**
   *
   * @param orgCode
   */
  public void setOrgCode(String orgCode) {
    this.orgCode = orgCode;
  }

  /**
   * @return orgName
   */
  public String getOrgName() {
    return orgName;
  }

  /**
   *
   * @param orgName
   */
  public void setOrgName(String orgName) {
    this.orgName = orgName;
  }

  /**
   * @return pid
   */
  public String getPid() {
    return pid;
  }

  /**
   *
   * @param pid
   */
  public void setPid(String pid) {
    this.pid = pid;
  }

  /**
   * @return dutyDescript
   */
  public String getDutyDescript() {
    return dutyDescript;
  }

  /**
   *
   * @param dutyDescript
   */
  public void setDutyDescript(String dutyDescript) {
    this.dutyDescript = dutyDescript;
  }

  /**
   * @return customerName
   */
  public String getCustomerName() {
    return customerName;
  }

  /**
   *
   * @param customerName
   */
  public void setCustomerName(String customerName) {
    this.customerName = customerName;
  }

  /**
   * @return customerId
   */
  public String getCustomerId() {
    return customerId;
  }

  /**
   *
   * @param customerId
   */
  public void setCustomerId(String customerId) {
    this.customerId = customerId;
  }

  /**
   * @return managerId
   */
  public String getManagerId() {
    return managerId;
  }

  /**
   *
   * @param managerId
   */
  public void setManagerId(String managerId) {
    this.managerId = managerId;
  }

  /**
   * @return managerName
   */
  public String getManagerName() {
    return managerName;
  }

  /**
   *
   * @param managerName
   */
  public void setManagerName(String managerName) {
    this.managerName = managerName;
  }

  /**
   * @return directorId
   */
  public String getDirectorId() {
    return directorId;
  }

  /**
   *
   * @param directorId
   */
  public void setDirectorId(String directorId) {
    this.directorId = directorId;
  }

  /**
   * @return directorName
   */
  public String getDirectorName() {
    return directorName;
  }

  /**
   *
   * @param directorName
   */
  public void setDirectorName(String directorName) {
    this.directorName = directorName;
  }

  /**
   * @return regDate
   */
  public String getRegDate() {
    return regDate;
  }

  /**
   *
   * @param regDate
   */
  public void setRegDate(String regDate) {
    this.regDate = regDate;
  }

  /**
   * @return dataStatus
   */
  public String getDataStatus() {
    return dataStatus;
  }

  /**
   *
   * @param dataStatus
   */
  public void setDataStatus(String dataStatus) {
    this.dataStatus = dataStatus;
  }

  /**
   * @return porgName
   */
  public String getPorgName() {
    return porgName;
  }

  /**
   *
   * @param porgName
   */
  public void setPorgName(String porgName) {
    this.porgName = porgName;
  }
}
